package com.example.evanproject.controller;


import com.example.evanproject.service.impl.StudentcoursesServiceImpl;

import com.example.evanproject.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("data")
public class StudentCoursesController {
    @Autowired
    private StudentcoursesServiceImpl studentCoursesService;

    @RequestMapping("/isexit")
    public AjaxResult selectisexit(Integer cId, Integer sId){
        return AjaxResult.success(studentCoursesService.selectisexit(cId,sId)) ;
    }

    @RequestMapping("/insertdata")
    public  AjaxResult insertdatalist(Integer cId,Integer sId){

        return AjaxResult.success(studentCoursesService.insertdatalist(cId,sId)) ;
    }



}
